package com.cc.ndmall.promotion.service.impl;

import com.cc.ndmall.common.utils.PageUtils;
import com.cc.ndmall.common.utils.Query;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.cc.ndmall.promotion.dao.GrouponRulesDao;
import com.cc.ndmall.promotion.entity.GrouponRulesEntity;
import com.cc.ndmall.promotion.service.GrouponRulesService;


@Service("grouponRulesService")
public class GrouponRulesServiceImpl extends ServiceImpl<GrouponRulesDao, GrouponRulesEntity> implements GrouponRulesService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<GrouponRulesEntity> page = this.page(
                new Query<GrouponRulesEntity>().getPage(params),
                new QueryWrapper<GrouponRulesEntity>()
        );

        return new PageUtils(page);
    }

}